package com.iOS.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class BlogInfo {
    private int  id;
    private  int userId;
    private  String blogTitle;
    private String blogContext;
    private String blogPictures;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getBlogTitle() {
        return blogTitle;
    }

    public void setBlogTitle(String blogTitle) {
        this.blogTitle = blogTitle;
    }

    public String getBlogContext() {
        return blogContext;
    }

    public void setBlogContext(String blogContext) {
        this.blogContext = blogContext;
    }

    public String getBlogPictures() {
        return blogPictures;
    }

    public void setBlogPictures(String blogPictures) {
        this.blogPictures = blogPictures;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "BlogInfo{" +
                "id=" + id +
                ", userId=" + userId +
                ", blogTitle='" + blogTitle + '\'' +
                ", blogContext='" + blogContext + '\'' +
                ", blogPicture='" + blogPictures + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
